﻿<%@ Page Title="Добро пожаловать --- Smart Dating" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebUI._Default" %>

<%@ Register Assembly="TabStrip" Namespace="TabStrip" TagPrefix="tc" %>
<%@ Register Assembly="WebControlCaptcha" Namespace="WebControlCaptcha" TagPrefix="msc" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Добро пожаловать в <em>Smart Dating</em>
    </h2>
    <div class="short_description">
        <em>Smart Dating</em> &mdash; это умная служба знакомств. <br />
        <a href="About.aspx">Подробнее</a>
    </div>

    <tc:TabControl runat="server" SelectedIndex="0" CssClass="tab_control" ID="tabs">
        <tc:TabItem runat="server" Caption="Вход">
            <span class="errSpan" id="errLoginSpan" runat="server" style="display:none;"></span>
            <table>
                <tr>
                    <td>Email:</td>
                    <td><input type="text" runat="server" id="txtEmailWho" class="halfsize" /> @ <input type="text" runat="server" id="txtEmailRealm"  class="halfsize"/></td>
                </tr>
                <tr>
                    <td>Пароль:</td>
                    <td><input type="password" runat="server" id="txtPassword" class="normalsize"/></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><input type="button" runat="server" id="cmdLogin" value="Вход" onserverclick="cmdLogin_ServerClick" /></td>
                </tr>
            </table>
        </tc:TabItem>
        <tc:TabItem runat="server" Caption="Регистрация">
            <span class="short_description">
                Для регистрации достаточно адреса <strong>электронной почты</strong> и <strong>пароля</strong>. <br />
                Также введите отображаемые на картинке <strong>цифры</strong> в поле внизу. <br />
                Это предотвращает автоматическую регистрацию рекламных анкет. <br />
            </span>
            <span runat="server" id="errSpan" class="errSpan" style="display: none;"></span>
            <table>
                <tr>
                    <td>Email:</td>
                    <td><input type="text" runat="server" id="txtEmailNewWho" class="halfsize" /> @ <input type="text" runat="server" id="txtEmailNewRealm"  class="halfsize" /></td>
                </tr>
                <tr>
                    <td>Пароль:</td>
                    <td><input type="password" runat="server" id="txtPasswordNew" class="normalsize" /></td>
                </tr>
                <tr>
                    <td>Цифры:</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <msc:CaptchaControl ID="ccJoin" runat="server" CaptchaChars="0123456789" CaptchaBackgroundNoise="Medium" CaptchaLength="5" CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="Medium" Text="" CaptchaMinTimeout="5" CaptchaMaxTimeout="240" CaptchaFontWarping="Low" />
                    </td>                    
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><input type="button" runat="server" id="cmdRegister" value="Регистрация" onserverclick="cmdRegister_ServerClick"/></td>
                </tr>
            </table>
        </tc:TabItem>
    </tc:TabControl>
</asp:Content>
